package cn.getech.data.development.model.res.procjobstatistics;

import cn.getech.data.intelligence.common.utils.DateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "离线任务执行时长排行top20结果")
public class OfflineDurationTop20Res {
    @ApiModelProperty(value = "项目名称")
    private String procName;
    @ApiModelProperty(value = "作业名称")
    private String jobName;
    @ApiModelProperty(value = "创建人")
    private String username;

    private Long cost;
    @ApiModelProperty(value = "执行时长")
    private String costStr;

    public String getProcName() {
        return procName;
    }

    public void setProcName(String procName) {
        this.procName = procName;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getCost() {
        return cost;
    }

    public void setCost(Long cost) {
        this.cost = cost;
    }

    public String getCostStr() {
        if(this.cost != null)
            return DateUtils.formatTime(this.cost);
        return null;
    }
}
